package com.springsummer.information.green.hello;


import com.springsummer.information.green.beans.InitializingBean;

public class FruitInitOne implements InitializingBean {

    private String name;

    private String color;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        this.setName("furitone init1");
        this.setColor("green");
        System.out.println(getClass()+ "invoke init...");
    }

}
